<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>

<div id="error-ajax" style="padding: 20px;">
	<html:errors/>
	<script type="text/javascript">
	window.onload = function() {
		if (typeof(window.parent) != 'undefined') {
			if (typeof(window.parent.callback) == 'function') {
				var element = document.getElementById('error-ajax');
				var childNodes = element.childNodes;
				element = childNodes[childNodes.length - 1];
				element.parentNode.removeChild(element);
				window.parent.callback(document.body.innerHTML);
			}
		}
	};
	</script>
</div>